package com.jd.jr.insights.dm.dim.domain;



import com.alibaba.fastjson.annotation.JSONField;
import com.jd.jr.insights.dm.dim.util.fastjson.tree.ITreeNode;

import java.util.Date;


public class Department implements ITreeNode {
    public Integer id;
    public String code;
    public String value;
    public String desc;

    public Integer level;
    public Integer parent_id;
    /*是否有效*/
    public Integer is_valid;
    /*创建时间*/
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    public Date created_time;
    /*更新时间*/
    @JSONField (format="yyyy-MM-dd HH:mm:ss")
    public Date updated_time;






    public Department(Integer id,String code,String value,String desc,Integer level,Integer parent_id,Integer is_valid,Date created_time,Date updated_time){
        setId(id);
        setCode(code);
        setValue(value);
        setDesc(desc);
        setParent_id(parent_id);
        setLevel(level);
        setIs_valid(is_valid);
        setCreated_time(created_time);
        setUpdated_time(updated_time);
    }

    public Department(){

    }


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }


    public Integer getParent_id() {
        return parent_id;
    }

    public void setParent_id(Integer parent_id) {
        this.parent_id = parent_id;
    }


    public Integer getIs_valid() {
        return is_valid;
    }

    public void setIs_valid(Integer is_valid) {
        this.is_valid = is_valid;
    }

    public Date getCreated_time() {
        return created_time;
    }

    public void setCreated_time(Date created_time) {
        this.created_time = created_time;
    }

    public Date getUpdated_time() {
        return updated_time;
    }

    public void setUpdated_time(Date updated_time) {
        this.updated_time = updated_time;
    }

    public Integer getNodeId() {
        return this.id;
    }

    public String getNodeName() {
        return this.value;
    }

    public Integer getNodeParentId() {
        return this.parent_id;
    }

    public Integer getOrderNum() {
        return this.id;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public String getNodeCode() {
        return this.code;
    }
}
